package com.company;

public class a {
    public static void main(String[] args) {
        for (int number = 0; number != 5; number = (int) (Math.random() * 10)) {
            System.out.println(number);
        }
    }
}